fix bugs for Tab display