connect view with .swift