created subclass for Component

this enables custom formatting of the component