Remove jsonify function and fix a bug in GUI