refactor ticket search
refactor ticket search