pagination styling; removed <a> when there is no link to go to