moved pagination in the correct template, bugfix