resolved issue with displaying thousands of pages

I have a habit of clicking on things that don't need to be clicked on, so this fixes the page display issue and by virtue decreases the page load time.
Before:
![image](https://cloud.githubusercontent.com/assets/4395149/4780230/507052d8-5c5e-11e4-8de0-b10303af349f.png)
After:
![image](https://cloud.githubusercontent.com/assets/4395149/4780228/3e0a493c-5c5e-11e4-8b34-7905f7958bb3.png)