minor fixes to function to update view definitions