Container factory split to view factory and Controller factory