fmWindow refactor