added behavior for buttons