Connecting the views