Moved sidemenu code