Added edit functionality in posts