add "back to top" button if pagination is present