added z-index and firefox compatibility