updates to follow flaskr tutorial.