save category and close modal