fixed warnings about using controller methods directly