resize record window at init