close and open tickets