search logic, work on show view