I am determined to move all of this code from the uiview to a delegate of the uiview. Still in the process of figuring out how to do that