Fixes $.toggleable not firing at the correct time and not changing the initial view.