SS: added functionality that allows to use another context when calling toDataElement()
begun to define initial data on load