Pagination class removed and added to site element