Reformat code
Design issues fixed for IE compatibility and other stuff