- Created the ajax activate/deactivate functionality