added controller code for I3