Moved mobile and subwindows to layouts