added emit click event on root
fixed if someone clicks on root / nav

and cleaned up unneeded code.
added search folder filter