refactor app edit page