added online/offline buttons