implemented search functionality on resources page