store event in file, show event with flask