Added pagination to ratings index, various bug fixes