update loading effect