Move pagination to separate template, fix bottom pagination style