React on inputs of multiple buttons.