safe sideMenu code restored