refactor edit user page to use new js format