move widgets on main page; clean up wals.js code