added the arraylist to the mainactivity, though it still needs to be initialized