add the paintcomponent