reorder includes a bit, add z-order and quit functionality