Connection for gui and corresponding files