Implement stop and restart buttons