fix: also update caja-extensions list after status toggling
improving variable naming consistency
indentation & plugging some memory leaks