Make some optimalizations
Added refreshing after changing the troop