add support for reading switch status
ui cleanup