message object and element added. Buttons functionality implemented