Made changes to Pins Controller