Simplify sidemenu logic