Major UI + backend overhaul for index.html