Fixed layout so that widget is not fully responsive to size changes. Also moved all the style definitions into css file to provide easier style changes.