plugged button changes into refactored code