fixed double click on buttons
prevent multiple calculations