Fix bug caused by submitting to database from question edit view
Fix bugs in edit view