revise program flow to incorporate program view controller