working on datacontext event based model