refactor search projects feature