fixed the browse and embed functionality