Added message system to layout

you can send message to another method through msg parameter