updates to layout and fixes for javascript.