working on relations in frontend