paths added for show, resetLoc function added