toggleStatus() method added