changed the framework to flask and the whole page