Fixed bug where icon would not update when switching tabs