fixed issue with pressing button multiple times