added template directory variable
fixed search submit and make it properly post form since ajax wasnt really working to begin with
added in template directory url