show/edit categories in forms