add closeSelector and closeAttribute properties