Fixing the add post functionality. It now adds, but requires a refresh