Connect MainPage and ItemPage