added rating to rate page but not working fully.