cleand up categories model and controller