code cosmetics
fix error with removal of control button and progress bar event listeners (closes #323)