File associations: implemented basic dialog logic