added modal for viewing details