made pages dynamic and individual photo pages can be accessed