adding divider funcionality to menus