adds partTree; cleans up templating and routes