refresh open tab that is not activated

• if a new class is opened, the tab needs to be refreshed because it's not activated