refactor - extract prefForm-displaylevels as function parameter