added new function to view message

it also checks whether the view is the viewer is an outsider !!