Fixed pagination

Rewrote scroll trigger, pagination should be fixed now. Some testing won't hurt. Also realigned buttons.