improved logic of update button in add-assessment