Add routing to functionality to the MainApp