update pins controller