code refactoring for routes/content.js
Implement particulary displaying post data in edit form