fix bug in helper method to generate hyper link