remove unused templates, switch to is_current