mouse selection works based on z order