modifying UI for slave and master on connection