updating get and posts