added window controller