enable/disable preview and write output buttons if applicable