Edits to the API. Close the modal when a user clicks "cancel."