use trick to hide window without closing