category dialog working