fix get goal
Giving goal before create
Improving view