refactoring styling for ViewPages