added close listeners