remove unnecessary functions from panels