Set Homepage at Url after press Home Page button and set selectedIndex(index) after add a tab.