prevent user from clicking multiple times in short time