Refactor css, extract widgets and bootstrap extensions