Support switching to admin windows

fix #1