enhance side menu logic