fixing form with preview automation