Added addtemplate and importtemplate functions
Added import template,completed the create widget and named the div