side menu refactoring