Updated the MainPage, so it supports the userId