add create ticket function