Handling ajax response with a new template