fix page links helper method