**Problem**: Attributes from toggled button would be reset when other pen attributes like color and width are changed. **Solution**: Handle the property change for other properties.