continued work on flask gui, now making things more modular