fixed layout issues in advanced settings and control agorithm