Refactor ticket fetching logic; Add ticket search to accounts/profile