added support for second page, i think it works