edited pins controller