Added uiSegmentedButton for selectic which view to show and downloadPhoto.outOfBounds Bug solved