Added authentication-aware wrapper for button clicklistener, issue #415.