correct promises post date and add onpage editing post