modified behavior when no record found

also completed controller-spec