fix z-index when opening from z-index > 0, add custom css option