add video loading spinner function