sql controller and display widget