Most functions on main and body page worked