Refactored the vertical menu positioning