Added a loading dialog for buffering