dynamic GUI, and fixing little bugs on parsing json for POST response