connect view and controller