moved resize listener into the first Load