Removed unused file
Fixed typo
Added conditional to avoid adding z-index when it isn't necessary
Added second conditional for z-index on parent element