more CRUD, added edit functionality to posts