removed outdated code.
small fixes to view model.
integrated iteminvoked event