Modified RestAPI.register to handle one view at a time