enhance the form with preview