Add function to open message and display them