pass object instead of id to link