Save dialog when necessary if going to progress activity