add delegate from view to controller