Refactoring profile and register view
Refactoring register