Design of modular control system