Add categories class and edit view