removed dead code
fixed bad call
adapted to jquery dialog
move link-widgets template to dashboard templates directory