first version of pattern template- added pattern template toolbar