actions detect in backend

TODO: view function and js action