added constructor with form param