changed the way the sidemenu worked