working on message viewing