set up relations in forms