added input validation to managableFileTree