Added functionality to action buttons