working on saving messages through a modal