Added add pattern dialog