Programmatically insert and remove controllers