add zIndex attribute & modify revert