changed update pins controller