adds message ahndling and event triggering to messages blade