adding ajax templates and functions
adding ajax templates and functions