Changed window creation from Lua