made changes to message model and created message view with template and render method with control flow for self/other messages