Auto register windows