added edit view for text and image widget