replaced togglelayout with setlayout