wokring on displaying messages in dashboard