added url for pin state checking