Basic template and controller