abstracted out everything into functions, particularly the addStartupToArray and initializeWebViews