Update work function OpenComponent(dir)