Initialize controller