Styling refactoring of views of elements