pagination buttons and tag buttons now work inconjunction