connected createMessage to mainScreen.. but failed :(