view rating script added by bhargav