solved re-rendering issues after fetch