Update title when swiping pages

Currently title changes only if pageControl was touched.
This is fix for the swipe gesture.
fixed error
applied settings recommended by xcode
Merge branch 'develop'