added pending function to LayerStack and Group