add viewpager and main page change.