refactor registration GUI