Added window dimensions resize feature.