Fixing syntax errors
Fixing pagination, adding cookies for page limit