Add navbar click event