added esc key, logo click, X close