refactored css, js, added handlers, next to add editor back