each fragment dictates which endpoint to load and how to render it