custom widget plugin fixes