config widget fix (closure problem with a function created inside a for)
config widget css and html layout.