Added buttons template, layout and button events