turning pagination into bootstrap class