Fixed links for units loaded via ajax.

LMS-2711

The click handlers were setup in such a way that they did not bind to links in units loaded via ajax.