format on index page, URL mappings made dynamic for REST