585 add close event to x button

closes #585 
yeah agree w/@prabhasp this should use `dommy/hide!`