add toggle buttons to connect viewer