fixed binding of dynamcially created links. need to redo that whole process later