implemented loadin chat messages on show chat event