use nested if statements to enable displaymanager

Merged Matti Hyttinen requested to merge profiles into master

Merge request reports