finally fixed controller code, almost done ehancing app