improve package preview and return the first item from the modal