Added a function for all ajaxable controller actions