Implemented a dialog to insert new categories.