updated pins controller file