added category and equipment model deactivation cases
added relevant JS function
added updated deactivate methods to controllers