possible fix to post window opening on page load