Added pagination, fixed main page, fixed statistics page