Added pagination to index view controller, updated frontend accordingly