Made pages dynamic