created template for editing post