modified file and samples menu handling.
attached file submenus.