pass function to open url to inspecting function