Add editing functionality, as well as flash messages.