adds link generator for ajax requests