Adding a plot  as main widget