Publishing modal window is working normal. Next step I will figure out why the userID is not being set until a page refresh.