Completes setting delegate of view controller