Jquery dialog in pane's links, total record in main page