remove unused element
cache preview element
add tabindex attribute
move menuBar's style to style.css