added resizable layout for embedding the console window