smoothing activity transitions