Modified AJAX call to support custom actions.