prototype.addComponent
modified addComponent, render; added prepareElement