Added custom window setup for imem