Separate handling of events and hash change
v0.5.0