Handle creating messages in mainpage setup script