avoid double click on buttons