populate form elements from json data