change URL /setAPlevel to /registerAP