add path default into the function (evt.location)