cleaned up Pins controller