viewport and IE compatability helpers