Finished the baseclass to render panels.