fixing routes and ajax still
fixed ajax, scoping issue resolved