add category to records logic and gui