connect views of main pages