adding close button for messages