added close btn support