Remove app-mode from sub-window