added auto-add feature to flip or page change