appending goals properly, onto button functionality