Added online/offline buttons to change state.