init pattern editor