refactor into flask app with lists subdomain