CW Gen: Added Button Functionality