Updated widget code for list display