initializeScreen function