refactor add ticket