added collapse button to message component