exposing the delete functionality on the front end