Separate viewcontroller and delegate for the detail view