adding styles to the widgets and calling the init method for each widget on the page