get update to work, add destroy functionality