rewrite add method of views in goal