remove some code from the sidemenu script