Added support for pagination and fixed some CSS