fix multi-device compatible bug and switch tab bug

1)add bootstrap compatiable code for multi-device; 2)fix the bug of
switch tab refresh