add option to disable smooth transitions