modifying this widget to conform to the tcms plugin