adding filter functionality to books page