add small template and controller fix