Passed resourceLocation to PageComponent automatically and cleaned up various methods on PageComponent