add and remove for periodpanel