fixed issue with screen resize update code being called multiple times