update uppperBar and middleBar mainpage