update App.register doc to work with new syntax