fix bugs in tab page