I found this link which was able to answer my question.
https://forum.omz-software.com/topic/3388/free-bible-app-w-source-code
I should have loaded all the views after the function definitions. And then only present the ones I need when the button is pressed on the Home screen which is presented first.
Please correct me if I am wrong.