Removed the mg-view and directly converted to spa controller.