Added panels animatino code to the MainPageBase class.