added a icon badge. added a function for switch among pages.