inital controller setup