Make links in campaign entitie to formlink. Some code improvements.