Refactoring and beautifying of views