fixed issue of pagination styling being on all links