refactor registration view