enable editing -- refactor reg page