handle special form elements properly