added close and render to extend component prototype