Refactored html/css of bwcalc widget