changing the post styles and sorting out paging links