Added actives and collapsing and expanding of menu.