simplify button action

instead of many if's, now each button know what to do with
"buttonAction" function.