corrected issue where modified field was not getting properly set in the update query of save function