fixed typo
fixed indentation
Implement #111, removed unecessary code
changed events triggering to load metadata used in the activities before the activities to avoid loading errors
Merge pull request #169 from SmokyBob/issue111

Implement #111