fix edit and make posts display in correct order