implement jquery_ujs and ajax for hide, open function and spinner for submit buttons