MainViewControllerDelegate protocol added .
clear code.