delete other windows when inserting the PMR template