updated routing to use sub-apps