Click on the transaction in the transaction history. Select "Add Category" and select a category from the list.