changed viewWillAppear to setSelectedPageIndex with animated marked to YES

I've changed viewWillAppear to setSelectedPageIndex with animated marked to YES. It was causing some issues with navigation controller. I also changed PageViewController to public to enable some UI customizations on children classes.