added close feature