Adds post edit functionality