converting to REST and single page