moved component-list code to a seperate element