Minor refactor of update page code.