added fancy js to message div
made edits work by id and not slug (since the slugs can change)