refactor to latest jquery, upgraded layout with tabs, general improvements from other code sources