moved part of gui to flask