updating with flask