refactor & bug fix

view code refactor..solve the "objectcontext instance has been disposed
..." problem.