Revert "Revert "Created the tree controller""

This reverts commit 5d8c8138baaa4076cf48d1344b29a96b97ed30ed.
Revert "Revert "Started shifting the code to the new design""

This reverts commit ecaf81fcaf11386c9cfa64791348230da4d012f4.