add clear function for some panels