style and refactor interior pages