Adding event listener for onclick of NAV object.