Activating the Arraylist but not working