search function and empty collection message