fixing pause being visible on page load