pdf done stuck with opening in a new tab