attach to window directly