created function called different to include all mail vars and fixed the message body appearing on click using the jquery on selector