add controller to manage the navigational logic