added flash messages to to-do list