implemented controller to link tree to commit view