View message function added and styled