function auto-open nerdtree