fixes and changes to box model