codes tested on UI page subscriber.php, access plan working fine