modified side menu to display the proper selection title and to close upon selection