added the possibility to choose from existing files from a menu