Issue #262: Switch tab lose default network type selection

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>

When switching tabs, currently the html is reload and all javascript
code will be re-executed. So before switch, all jquery widgets
created in a certain tab need to be destroyed.