implementation modern time stamp in chat layout