added online/offline button for simulation of online-mode