updated sample to work with web forms api