added availability search functionality.