populate form from REST server