Make pagination work with buttons

In webapps it's not unusual to find paginations implemented with buttons because there's some form around.