close button and refresh on/off