Manipulating z-index of objects based on user input.