Add: retrieve json when start and writeback when quit