Change the sidemenu logic