adding style component for each row