Edited in order to include third view for segmented controller