Added the initialize function to the main app