moved pagination link into the div