rethinking how to generate elements, adding routes as small UI with flask for generating elements