updated component to include scripts