fix client template and view