action listener for buttons
merge