fix for IE
Move dl.portalMessage to the top