added functionality to check/uncheck ratings