Added post edit functionality for post