resize form to contain all scenarios