prevent multiple snippet insertion on rapid clicking