refactor side menu managing