Close details view on search or browse opening