added a screen method to the Component class