added click handler for nav links