Populates category options correctly on edit