added setDirs for view widget