added switch button to stop service