added what needs to be clicked for closing dialog button