Added functionality for 'selected' submenu items
Added functionality for activating submenu items