implemented showPanel-methode, some code-cleanup