add dynamic form with flash message