Modified so that ticket id is returned in instance on create new ticket