Added third view controller functionality