find and display portal message on close
added minify and minified version