added type controller to demo