Creating delegate to back window