Added a AJAX call in template to send data to server and added view function to receive the data from template and return a test status