edited X-button in categorypanel