to make sure we can remove the panel and go back to the service view we need this cleanup code.