Optimize setActivePage method
Optimize prev first page