Change: Call errorhandler after button is clicked