Style updates, move pageCache assignment to main function