Added action buttons and checkbox counting