restructured layout, almost saving stories into the db