moved flask code to proper location
moved flask code to proper location