Navigation responding to onclick event