Added the functionality to display detail view when clicked on an assignment