adding selected class in menus