refactoring events for Rack
refactored all of the framework to the Rack as the Facade