refactor related objects

create goals object for user, pass user details and user goals into
template