basic show/hide window functionality