hasLayout for IE8 and began work on functionality