Tree View bug fixes.

Signed-off-by: Arica Liu <aricaliu@wpi.edu>