add createMessage and closeMessage functions in daily chart factory