refactored styling of all pages