stylize and implement pagination