changed the structure of the app so that data is requested via ajax instead of loaded in the template, which simplifies the workflow considerably