Added actions of two buttons.