articles show up after button is clicked, but function runs before search_string and .articles is initiated