fix some bugs of main page