Update widgets_controller.rb

fixed bad function call