change mainpage layoutupdated event