fixed issue when submitting but not changing the value of a spinner
added delete function to data layer