Fixed the display of the delete button and an error for non admin users