add code to register client page