Added click listener for action buttons.