new class "FileDialog" creates dialog in MainActivity