First Stab at Moving Code from the Plugin to the View Controller