added close button to loan detail