separated view from logic in classes/paging and add css style to paging in view