Layout of the form is different in preview mode