init crud and templating