changes to mainpage.cs added