Added root view controller in delegate instead of adding subview of window