add component control and interface for script