performance increase by not calling elementFromPoint unless needed, few fixes.