Update DiagnosesController.php

- some changes to index method
- view method has been added