Formatting issues

fixed some formatting issues with getting a pin id in pins.php