takes text and adds it to a list