complete the mainpage tap and fix the bug