Clear global arraylist before adding new content