Update how register sub window works.