changed widget code for use with awesome 3.4