added flashes, post edits, and JS stuff