Revert "Added arraylist to viewallmessages"

This reverts commit a59c6aa3e5f810dddd1ea2a40f0d94ef93fcf0bf.