By testing active_model in the domain, it is possible to simplify the number of relate to define. Also for relate from party, it gives more information to the user to display the number of pending and done.