testing out weigthages
fixes
clearing window on resize
fire_dimension_changed on change of height or width since calc_dim needs to be called else padrefresh fails