Preview: Clean up function linking to program editor