use domify and events to replace dom