remove dynamic sidebar function