integrating modal to main & widgets controllers.