Added support for fragment changes when swiping.