Add close icon and functionality to details view