add loading on preview