setting up relationships on the fornt end