More fixes towards design mode implementation. Getselection now works.