refactor view styles