refactor edit account view