fix some semicolons, new functions

add head elements, create widget