Updating app structure and routes to work with new framework functions