extend the app to render legends from input model metadata