adding code to navigation