logic for creating the send_message form