adding close button by providing id