added functionality to mark search results after search