JQuery/CSS R6

full, but not complete functionality of header buttons complete.
more minor fixes to css.