adding functionality for a source tree view