Update view.ctp

View has been changed. Now all calculations is being done in back-end (DiagHelper)