Aded window delegate class