Fix HTML view button after clicking to another tab.