moved pending up from expiry to root
manual ajax instead of jquery