Replace initializing code into initWithNibName:bundle:. Move gesture recognizers setup in viewDidLoad