fix template and view