fixed html bug and added zIndex