calling webservises and updating templates