Added dialog box for remove pattern