reducing repeated code, now all items on navigation menu do something