Adjust main form.