attempted fix to ajax on main page, several small style changes