optimize gotocomponent command