fixed, when press showmessages cant go to IPage. Refactored showMessages from HTML to js
Merge branch 'master' into fix