passing goal to all views