Switch UI according to form changes