finally added the toggle option for animate(). It's not beautiful right now, but it works for the time.