added publish and ordering functionality to categories view