Preview and Widget use the same output function