improvements for automatic clickoverlay