fixes #50: switched the settingAppMode and setUpMap calls
Merge branch 'bug/50-problems-with-appmodelayer-attributes' into dev