Added support for goals in visits page - just a rough outline