Prevent double clicking of commands