rate function added when options clicked