statelist update and app update for custom templates in @flask_api