Fixed next and previous link css classes, added view all css class, removed unneeded variables