added delegate to view controller, now can pass around data