use ioc for page instantiation