[FIX] Tree not rebuilding after the view is changed.

Signed-off-by: Ramakrishnan P <ramakrishanan_p@kalycito.com>