renders loader and icon customizable