added parameter to show or hide mass delete button