} else if (type.equals("rotate")) {
newActiveModule=new RotateModule(hub);
} else if (type.equals("rotate3d")) {
newActiveModule=new Rotate3DModule(hub);
} else if (type.equals("reactionArrow")) {
newActiveModule=new ReactionArrowModule(hub);
} else if (type.equals("chain")) {
newActiveModule=new ChainModule(hub);
}
if(newActiveModule!=null){
newActiveModule.setID(type);