-- added update query on form submit
-- added message to main view if update was unsuccsesful