work on json interface and example gui page