rateView close button and function added