added template and jquery