add command to save source files and refresh viewer