ghanged advancedlayout to gone if simple