Changed some styles and fixed bug next on pagination