adding the view viewcontroller and window