functionality added to close button @Process_planned_asm.