added click close feature