changed so that each button has it's own form