designed/implemented internal/external click detection