fixed lots of issues with file_dialog.*, template in tt