addeded script to close menu whena nav option is selected