Add selectionchangedcommand and fixed json.