Update feature: Added ajax request processing functions in template