replaced call to deprecated function + cofrrect widget default template