updated layout and javascript.