editted javascript for updates, edited update method in assignment control to render error messages