message creation in index.php