adds event handlers to navigation view