- structure improvments in code
- added change detection to ensure that didEnd will be fired even if its disabled