Fixed menu bug

Added bounds around menus to make sure that the menu triggers only
execute when side those bounds.