implement save and open dialogs and change model according to saving and
loading files