Merge pull request #2961 from digi604/fix-2904

basics settings and structure mode placing
fixes js button switch