Fix namespace and passing data to the template