Fix  undefined
Add working settings close button