register state window