Added delete button, and error handling on the client side.