implementation of message views