added activate and deactivate functions for todo item