Edit posts
Refactoring