Added rating filter functionality