Added code to navigation bar