Added click listeners to buttons in error mode of sidebar