Building a graphical interface to control the relays