Write selected path/uuid into fields. Cleanup.