changes for vip approval, typecast queryvars, $pagenow check