Refactoring: changed the arrangement of the code.

changed: a class of the tabIdHistory variable is changed from the TabIdList to the TabIdHistory.

fixed: issues #4(The tab is not inserted at the right place when you restored the tab.)

modify: issues #3("A popup window is created the new tab" ain't behavior of normally.)
changed: change getType code. and add toType.
modify: Issues #5(the loading button isn't behavior of normally in the options page.)
refactoring: this code is faster than previous code.