added loader into the component to fetch resources as dependancies are evaluated