Refactoring: protection against double click