update stackscript to prevent double-tapping