stop inspector if selector is not visible