changed model of ratings and enabled history saving