Adapts to many pages, no need for else ifs for every page
Merge pull request #1 from sailordude919/master

Adapts to many pages